#include "time.h"

void TB0_config()
{
    TBCCTL0 &= ~CCIE;                           // CCR0 interrupt enabled
    TBCCR0 = 3200;
    TBCTL = TBSSEL_1 | MC_2 | TBCLR;          // ACLK, contmode, clear TBR
    TBCCTL0 = CCIE;                           // CCR0 interrupt enabled
}

void TB0_enable(unsigned int x) 
{
	TBCCTL0 = CCIE; 
	TBCCR0 = (x);
}

void TB0_disable() 
{
	TBCCTL0 &= ~CCIE; 
	TBCCR0 = 0;
}